package cn.com.taurus.impl;

import cn.com.taurus.entity.AdminLog;
import cn.com.taurus.mapper.AdminLogMapper;
import cn.com.taurus.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @remark 管理员日志实现类
 * @author Zht
 * @createTime 2021年6月23日 15点43分
 * @version 1.0
 */
@Repository
public class AdminLogImpl implements AdminLogService {
    @Autowired
    AdminLogMapper mapper;
    @Override
    public int addAdminLog(AdminLog AdminLog) throws NullPointerException{
        return mapper.addAdminLog(AdminLog);
    }

    @Override
    public int deleteAllAdminLog() throws NullPointerException {
        return mapper.deleteAllAdminLog();
    }

    @Override
    public List<AdminLog> queryAllAdminLog() {
        return mapper.queryAllAdminLog();
    }

    @Override
    public List<AdminLog> selectDimAdminLog(AdminLog adminLog) {
        return mapper.selectDimAdminLog(adminLog);
    }
}
